package com.fresh.liangyi.service.impl;

import com.fresh.liangyi.dao.MenuMapper;
import com.fresh.liangyi.model.domain.Menu;
import com.fresh.liangyi.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuMapper menuMapper;
    @Override
    public List<Menu> selectMenuAll() {
        return menuMapper.selectMenuAll();
    }

    @Override
    public Menu selectMenuById(Integer id) {
        return menuMapper.selectMenuById(id);
    }

    @Override
    public int addMenu(Menu menu) {
        return menuMapper.addMenu(menu);
    }

}
